import { Component } from '@angular/core';
// 声明
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
// 输出AppComponent, 在app.module.ts中引用
export class AppComponent {
  title = 'test1';
  private show:boolean = true;
  fn () {
    this.show = !this.show;
  }
}
